

// Address
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

public class User
{

  public int Id {get;set;}
  public string Number { get; set; }
  public string Password { get; set; }
  public string Role {get;set;}
  public Room   Room {get;set;}

  [NotMapped]
  public string Token { get; set; } 
}
public class Room
{
  public int Id {get;set;}
  public string Name { get; set; }
}
public class SampleContext : DbContext
{
    public SampleContext(DbContextOptions options) : base(options)
    {
    }

    protected SampleContext()
    {
    }
        public DbSet<User> Users { get; set; }
       
        public DbSet<Room> Rooms { get; set; }

}